/*
 * @Description: 
 * @Author: 张凌瑞
 * @Date: 2021-02-26 11:11:46
 * @LastEditTime: 2021-02-26 11:56:14
 * @LastEditors: 张凌瑞
 */


import { lazy } from "react"
//引入interface
import { RouterFace } from "./router"



let routes: RouterFace[] = [
  //重定向
  {
    'redirect': '/official',
    'path': '/'
  },
  //主页
  {
    'path': '/official',
    'component': lazy(() => import(/* webpackChunkName:"official" */"@/views/official/Official")),
  },
  //汽车详情页面
  {
    'path': '/car/:id',
    'component': lazy(() => import(/* webpackChunkName:"car" */"@/views/carFun/Car")),
  },
  //询问底价页
  {
    'path': '/quotation',
    'component': lazy(() => import(/* webpackChunkName:"quotation" */"@/views/quotationFun/Quotation"))
  },
  //图片页面
  {
    'path': '/img',
    'component': lazy(() => import(/* webpackChunkName:"img" */"@/views/imgFun/Img"))
  },
  //询问底价中跳转选择车款的页面
  {
    'path': '/type',
    'component': lazy(() => import(/* webpackChunkName:"type" */"@/views/typeFun/Type"))
  },

  //颜色页面
  {
    'path': '/color',
    'component': lazy(() => import(/* webpackChunkName:"color" */"@/views/colorFun/Color"))

  }
]


export default routes